[INFO] cloning repository https://github.com/tuttlem/substrate
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tuttlem/substrate" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftuttlem%2Fsubstrate", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftuttlem%2Fsubstrate'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f9f789816f2b971708d0a9f265ca8ede19aea0ca
[INFO] fixing tuttlem/substrate against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftuttlem%2Fsubstrate" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tuttlem/substrate
[INFO] finished tweaking git repo https://github.com/tuttlem/substrate
[INFO] tweaked toml for git repo https://github.com/tuttlem/substrate written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tuttlem/substrate on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tuttlem/substrate already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a
[INFO] running `Command { std: "docker" "start" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating kernel/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/hal/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating arch/x86_64/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/kernel-core/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Migrating crates/test-host/Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling bootloader_api v0.11.15
[INFO] [stderr]    Compiling const_fn v0.4.11
[INFO] [stderr]     Checking bit_field v0.10.3
[INFO] [stderr]     Checking volatile v0.4.6
[INFO] [stderr]     Checking bitflags v2.10.0
[INFO] [stderr]     Checking kernel_core v0.1.0 (/opt/rustwide/workdir/crates/kernel-core)
[INFO] [stderr]    Migrating crates/kernel-core/src/lib.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     unsafe { SLAB.alloc(class_idx) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:133:14
[INFO] [stdout]     |
[INFO] [stdout] 133 |     unsafe { SLAB.free(class_idx, ptr) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:138:14
[INFO] [stdout]     |
[INFO] [stdout] 138 |     unsafe { SLAB.init() };
[INFO] [stdout]     |              ^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     unsafe { SLAB.alloc(class_idx) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:133:14
[INFO] [stdout]     |
[INFO] [stdout] 133 |     unsafe { SLAB.free(class_idx, ptr) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:138:14
[INFO] [stdout]     |
[INFO] [stdout] 138 |     unsafe { SLAB.init() };
[INFO] [stdout]     |              ^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking host_tests v0.1.0 (/opt/rustwide/workdir/crates/test-host)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:128:14
[INFO] [stdout]     |
[INFO] [stdout] 128 |     unsafe { SLAB.alloc(class_idx) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating crates/test-host/src/lib.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:133:14
[INFO] [stdout]     |
[INFO] [stdout] 133 |     unsafe { SLAB.free(class_idx, ptr) }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> crates/kernel-core/src/slab.rs:138:14
[INFO] [stdout]     |
[INFO] [stdout] 138 |     unsafe { SLAB.init() };
[INFO] [stdout]     |              ^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking x86_64 v0.15.4
[INFO] [stderr]     Checking arch_x86_64 v0.1.0 (/opt/rustwide/workdir/arch/x86_64)
[INFO] [stderr]    Migrating arch/x86_64/src/lib.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed arch/x86_64/src/irq.rs (1 fix)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         TSS.write(tss);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]        Fixed arch/x86_64/src/mm.rs (2 fixes)
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:48:28
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let tss_ref = unsafe { TSS.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]        Fixed arch/x86_64/src/context.rs (7 fixes)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |         GDT.write(gdt);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]        Fixed arch/x86_64/src/pci.rs (2 fixes)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 | /         SELECTORS.write(Selectors {
[INFO] [stdout] 59 | |             code: code_selector,
[INFO] [stdout] 60 | |             data: data_selector,
[INFO] [stdout] 61 | |             tss: tss_selector,
[INFO] [stdout] 62 | |             user_code: user_code_selector,
[INFO] [stdout] 63 | |             user_data: user_data_selector,
[INFO] [stdout] 64 | |         });
[INFO] [stdout]    | |__________^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]        Fixed arch/x86_64/src/serial.rs (2 fixes)
[INFO] [stderr]        Fixed arch/x86_64/src/exceptions.rs (17 fixes)
[INFO] [stderr]        Fixed arch/x86_64/src/ps2.rs (2 fixes)
[INFO] [stderr]        Fixed arch/x86_64/src/syscall.rs (1 fix)
[INFO] [stderr]        Fixed arch/x86_64/src/time.rs (2 fixes)
[INFO] [stderr]     Checking hal v0.1.0 (/opt/rustwide/workdir/crates/hal)
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:67:28
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let gdt_ref = unsafe { GDT.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:798:5
[INFO] [stdout]     |
[INFO] [stdout] 798 |     MEMORY.frame_alloc.reserve(addr);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating crates/hal/src/lib.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed crates/hal/src/syscall.rs (2 fixes)
[INFO] [stderr]        Fixed crates/hal/src/context.rs (4 fixes)
[INFO] [stderr]     Checking kernel v0.1.0 (/opt/rustwide/workdir/kernel)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         TSS.write(tss);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:48:28
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let tss_ref = unsafe { TSS.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |         GDT.write(gdt);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 | /         SELECTORS.write(Selectors {
[INFO] [stdout] 59 | |             code: code_selector,
[INFO] [stdout] 60 | |             data: data_selector,
[INFO] [stdout] 61 | |             tss: tss_selector,
[INFO] [stdout] 62 | |             user_code: user_code_selector,
[INFO] [stdout] 63 | |             user_data: user_data_selector,
[INFO] [stdout] 64 | |         });
[INFO] [stdout]    | |__________^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:67:28
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let gdt_ref = unsafe { GDT.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:798:5
[INFO] [stdout]     |
[INFO] [stdout] 798 |     MEMORY.frame_alloc.reserve(addr);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:45:9
[INFO] [stdout]    |
[INFO] [stdout] 45 |         TSS.write(tss);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:48:28
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let tss_ref = unsafe { TSS.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:57:9
[INFO] [stdout]    |
[INFO] [stdout] 57 |         GDT.write(gdt);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:58:9
[INFO] [stdout]    |
[INFO] [stdout] 58 | /         SELECTORS.write(Selectors {
[INFO] [stdout] 59 | |             code: code_selector,
[INFO] [stdout] 60 | |             data: data_selector,
[INFO] [stdout] 61 | |             tss: tss_selector,
[INFO] [stdout] 62 | |             user_code: user_code_selector,
[INFO] [stdout] 63 | |             user_data: user_data_selector,
[INFO] [stdout] 64 | |         });
[INFO] [stdout]    | |__________^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:67:28
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let gdt_ref = unsafe { GDT.assume_init_ref() };
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 27 - static mut GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout] 27 + static GDT: MaybeUninit<GlobalDescriptorTable> = MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:798:5
[INFO] [stdout]     |
[INFO] [stdout] 798 |     MEMORY.frame_alloc.reserve(addr);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating kernel/src/main.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed kernel/src/main.rs (1 fix)
[INFO] [stderr]        Fixed kernel/src/console.rs (1 fix)
[INFO] [stderr]        Fixed kernel/src/vfs.rs (3 fixes)
[INFO] [stderr]        Fixed kernel/src/kthread.rs (1 fix)
[INFO] [stderr]        Fixed kernel/src/sched.rs (2 fixes)
[INFO] [stderr]        Fixed kernel/src/syscall.rs (2 fixes)
[INFO] [stderr]        Fixed kernel/src/irq.rs (1 fix)
[INFO] [stderr]        Fixed kernel/src/pci.rs (1 fix)
[INFO] [stderr]        Fixed kernel/src/context.rs (2 fixes)
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> kernel/src/initramfs.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         STATE.write(Initramfs { payload, entries });
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> kernel/src/initramfs.rs:278:21
[INFO] [stdout]     |
[INFO] [stdout] 278 |         Ok(unsafe { STATE.assume_init_ref() })
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> kernel/src/vfs.rs:934:11
[INFO] [stdout]     |
[INFO] [stdout] 934 |         f(BLK_DEV.assume_init_mut())
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> kernel/src/vfs.rs:945:13
[INFO] [stdout]     |
[INFO] [stdout] 945 |             BLK_DEV.write(virtio_blk::init()?);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> kernel/src/irq.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |         REGISTRY.write(entries);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> kernel/src/irq.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |         COUNTS.write(counts);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 17 - static mut COUNTS: core::mem::MaybeUninit<[AtomicU64; IRQ_LINES]> = core::mem::MaybeUninit::uninit();
[INFO] [stdout] 17 + static COUNTS: core::mem::MaybeUninit<[AtomicU64; IRQ_LINES]> = core::mem::MaybeUninit::uninit();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> kernel/src/irq.rs:75:18
[INFO] [stdout]    |
[INFO] [stdout] 75 |         Ok(&mut *REGISTRY.as_mut_ptr())
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> kernel/src/irq.rs:105:14
[INFO] [stdout]     |
[INFO] [stdout] 105 |         Ok(&*COUNTS.as_ptr())
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  17 - static mut COUNTS: core::mem::MaybeUninit<[AtomicU64; IRQ_LINES]> = core::mem::MaybeUninit::uninit();
[INFO] [stdout]  17 + static COUNTS: core::mem::MaybeUninit<[AtomicU64; IRQ_LINES]> = core::mem::MaybeUninit::uninit();
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.55s
[INFO] [stderr] crater-edition-check: kernel v0.1.0 (/opt/rustwide/workdir/kernel) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: hal v0.1.0 (/opt/rustwide/workdir/crates/hal) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: arch_x86_64 v0.1.0 (/opt/rustwide/workdir/arch/x86_64) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: kernel_core v0.1.0 (/opt/rustwide/workdir/crates/kernel-core) updating edition from 2021 to 2024
[INFO] [stderr] crater-edition-check: host_tests v0.1.0 (/opt/rustwide/workdir/crates/test-host) updating edition from 2021 to 2024
[INFO] [stderr]     Checking kernel_core v0.1.0 (/opt/rustwide/workdir/crates/kernel-core)
[INFO] [stderr]     Checking arch_x86_64 v0.1.0 (/opt/rustwide/workdir/arch/x86_64)
[INFO] [stderr]     Checking host_tests v0.1.0 (/opt/rustwide/workdir/crates/test-host)
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]  --> arch/x86_64/src/cpu.rs:6:16
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]   |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> arch/x86_64/src/irq.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]    |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `arch_x86_64` (lib test) due to 8 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]  --> arch/x86_64/src/cpu.rs:6:16
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]   |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> arch/x86_64/src/irq.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]    |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `arch_x86_64` (lib) due to 8 previous errors; 2 warnings emitted
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]  --> arch/x86_64/src/cpu.rs:6:16
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]   |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]   --> arch/x86_64/src/irq.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let info = unsafe { core::arch::x86_64::__cpuid(1) };
[INFO] [stdout]    |                ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:81:30
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/gdt.rs:91:30
[INFO] [stdout]    |
[INFO] [stdout] 91 |     let selectors = unsafe { SELECTORS.assume_init_ref() };
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/gdt.rs:103:19
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let tss = TSS.assume_init_mut();
[INFO] [stdout]     |                   ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> arch/x86_64/src/mm.rs:72:9
[INFO] [stdout]    |
[INFO] [stdout] 72 |         MEMORY.frame_alloc.init(regions);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe { MEMORY.frame_alloc.alloc() }
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:121:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |         MEMORY.frame_alloc.free(pa & PAGE_MASK);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> arch/x86_64/src/mm.rs:792:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |         MEMORY.frame_alloc.regions()
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `arch_x86_64` (lib) due to 8 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a", kill_on_drop: false }`
[INFO] [stdout] 0b09c13977e7f8dff64a30a8596ff5bccd94d483e36a2f8464fc358107669d8a
